package com.company.demo.strategy;

import com.company.demo.pojo.WxBlance;
import com.company.demo.pojo.WxTrade;


/**
 * 扣除策略封装
 * 策略上下文
 */
public class DedutionContext {

    private IDeduction deduction;

    public DedutionContext(IDeduction deduction) {
        this.deduction = deduction;
    }

    public boolean exec(WxBlance wxBlance, WxTrade wxTrade) {
        return deduction.exec(wxBlance,wxTrade);
    }
}
